package com.kingzoon.seckill.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class UpgMarketExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private Integer limit;

    private Integer offset;

    public UpgMarketExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setOffset(Integer offset) {
        this.offset = offset;
    }

    public Integer getOffset() {
        return offset;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andMarketcodeIsNull() {
            addCriterion("MARKETCODE is null");
            return (Criteria) this;
        }

        public Criteria andMarketcodeIsNotNull() {
            addCriterion("MARKETCODE is not null");
            return (Criteria) this;
        }

        public Criteria andMarketcodeEqualTo(String value) {
            addCriterion("MARKETCODE =", value, "marketcode");
            return (Criteria) this;
        }

        public Criteria andMarketcodeNotEqualTo(String value) {
            addCriterion("MARKETCODE <>", value, "marketcode");
            return (Criteria) this;
        }

        public Criteria andMarketcodeGreaterThan(String value) {
            addCriterion("MARKETCODE >", value, "marketcode");
            return (Criteria) this;
        }

        public Criteria andMarketcodeGreaterThanOrEqualTo(String value) {
            addCriterion("MARKETCODE >=", value, "marketcode");
            return (Criteria) this;
        }

        public Criteria andMarketcodeLessThan(String value) {
            addCriterion("MARKETCODE <", value, "marketcode");
            return (Criteria) this;
        }

        public Criteria andMarketcodeLessThanOrEqualTo(String value) {
            addCriterion("MARKETCODE <=", value, "marketcode");
            return (Criteria) this;
        }

        public Criteria andMarketcodeLike(String value) {
            addCriterion("MARKETCODE like", value, "marketcode");
            return (Criteria) this;
        }

        public Criteria andMarketcodeNotLike(String value) {
            addCriterion("MARKETCODE not like", value, "marketcode");
            return (Criteria) this;
        }

        public Criteria andMarketcodeIn(List<String> values) {
            addCriterion("MARKETCODE in", values, "marketcode");
            return (Criteria) this;
        }

        public Criteria andMarketcodeNotIn(List<String> values) {
            addCriterion("MARKETCODE not in", values, "marketcode");
            return (Criteria) this;
        }

        public Criteria andMarketcodeBetween(String value1, String value2) {
            addCriterion("MARKETCODE between", value1, value2, "marketcode");
            return (Criteria) this;
        }

        public Criteria andMarketcodeNotBetween(String value1, String value2) {
            addCriterion("MARKETCODE not between", value1, value2, "marketcode");
            return (Criteria) this;
        }

        public Criteria andMarketnameIsNull() {
            addCriterion("MARKETNAME is null");
            return (Criteria) this;
        }

        public Criteria andMarketnameIsNotNull() {
            addCriterion("MARKETNAME is not null");
            return (Criteria) this;
        }

        public Criteria andMarketnameEqualTo(String value) {
            addCriterion("MARKETNAME =", value, "marketname");
            return (Criteria) this;
        }

        public Criteria andMarketnameNotEqualTo(String value) {
            addCriterion("MARKETNAME <>", value, "marketname");
            return (Criteria) this;
        }

        public Criteria andMarketnameGreaterThan(String value) {
            addCriterion("MARKETNAME >", value, "marketname");
            return (Criteria) this;
        }

        public Criteria andMarketnameGreaterThanOrEqualTo(String value) {
            addCriterion("MARKETNAME >=", value, "marketname");
            return (Criteria) this;
        }

        public Criteria andMarketnameLessThan(String value) {
            addCriterion("MARKETNAME <", value, "marketname");
            return (Criteria) this;
        }

        public Criteria andMarketnameLessThanOrEqualTo(String value) {
            addCriterion("MARKETNAME <=", value, "marketname");
            return (Criteria) this;
        }

        public Criteria andMarketnameLike(String value) {
            addCriterion("MARKETNAME like", value, "marketname");
            return (Criteria) this;
        }

        public Criteria andMarketnameNotLike(String value) {
            addCriterion("MARKETNAME not like", value, "marketname");
            return (Criteria) this;
        }

        public Criteria andMarketnameIn(List<String> values) {
            addCriterion("MARKETNAME in", values, "marketname");
            return (Criteria) this;
        }

        public Criteria andMarketnameNotIn(List<String> values) {
            addCriterion("MARKETNAME not in", values, "marketname");
            return (Criteria) this;
        }

        public Criteria andMarketnameBetween(String value1, String value2) {
            addCriterion("MARKETNAME between", value1, value2, "marketname");
            return (Criteria) this;
        }

        public Criteria andMarketnameNotBetween(String value1, String value2) {
            addCriterion("MARKETNAME not between", value1, value2, "marketname");
            return (Criteria) this;
        }

        public Criteria andAgentservicebexIsNull() {
            addCriterion("AGENTSERVICEBEX is null");
            return (Criteria) this;
        }

        public Criteria andAgentservicebexIsNotNull() {
            addCriterion("AGENTSERVICEBEX is not null");
            return (Criteria) this;
        }

        public Criteria andAgentservicebexEqualTo(String value) {
            addCriterion("AGENTSERVICEBEX =", value, "agentservicebex");
            return (Criteria) this;
        }

        public Criteria andAgentservicebexNotEqualTo(String value) {
            addCriterion("AGENTSERVICEBEX <>", value, "agentservicebex");
            return (Criteria) this;
        }

        public Criteria andAgentservicebexGreaterThan(String value) {
            addCriterion("AGENTSERVICEBEX >", value, "agentservicebex");
            return (Criteria) this;
        }

        public Criteria andAgentservicebexGreaterThanOrEqualTo(String value) {
            addCriterion("AGENTSERVICEBEX >=", value, "agentservicebex");
            return (Criteria) this;
        }

        public Criteria andAgentservicebexLessThan(String value) {
            addCriterion("AGENTSERVICEBEX <", value, "agentservicebex");
            return (Criteria) this;
        }

        public Criteria andAgentservicebexLessThanOrEqualTo(String value) {
            addCriterion("AGENTSERVICEBEX <=", value, "agentservicebex");
            return (Criteria) this;
        }

        public Criteria andAgentservicebexLike(String value) {
            addCriterion("AGENTSERVICEBEX like", value, "agentservicebex");
            return (Criteria) this;
        }

        public Criteria andAgentservicebexNotLike(String value) {
            addCriterion("AGENTSERVICEBEX not like", value, "agentservicebex");
            return (Criteria) this;
        }

        public Criteria andAgentservicebexIn(List<String> values) {
            addCriterion("AGENTSERVICEBEX in", values, "agentservicebex");
            return (Criteria) this;
        }

        public Criteria andAgentservicebexNotIn(List<String> values) {
            addCriterion("AGENTSERVICEBEX not in", values, "agentservicebex");
            return (Criteria) this;
        }

        public Criteria andAgentservicebexBetween(String value1, String value2) {
            addCriterion("AGENTSERVICEBEX between", value1, value2, "agentservicebex");
            return (Criteria) this;
        }

        public Criteria andAgentservicebexNotBetween(String value1, String value2) {
            addCriterion("AGENTSERVICEBEX not between", value1, value2, "agentservicebex");
            return (Criteria) this;
        }

        public Criteria andRequestconvertIsNull() {
            addCriterion("REQUESTCONVERT is null");
            return (Criteria) this;
        }

        public Criteria andRequestconvertIsNotNull() {
            addCriterion("REQUESTCONVERT is not null");
            return (Criteria) this;
        }

        public Criteria andRequestconvertEqualTo(String value) {
            addCriterion("REQUESTCONVERT =", value, "requestconvert");
            return (Criteria) this;
        }

        public Criteria andRequestconvertNotEqualTo(String value) {
            addCriterion("REQUESTCONVERT <>", value, "requestconvert");
            return (Criteria) this;
        }

        public Criteria andRequestconvertGreaterThan(String value) {
            addCriterion("REQUESTCONVERT >", value, "requestconvert");
            return (Criteria) this;
        }

        public Criteria andRequestconvertGreaterThanOrEqualTo(String value) {
            addCriterion("REQUESTCONVERT >=", value, "requestconvert");
            return (Criteria) this;
        }

        public Criteria andRequestconvertLessThan(String value) {
            addCriterion("REQUESTCONVERT <", value, "requestconvert");
            return (Criteria) this;
        }

        public Criteria andRequestconvertLessThanOrEqualTo(String value) {
            addCriterion("REQUESTCONVERT <=", value, "requestconvert");
            return (Criteria) this;
        }

        public Criteria andRequestconvertLike(String value) {
            addCriterion("REQUESTCONVERT like", value, "requestconvert");
            return (Criteria) this;
        }

        public Criteria andRequestconvertNotLike(String value) {
            addCriterion("REQUESTCONVERT not like", value, "requestconvert");
            return (Criteria) this;
        }

        public Criteria andRequestconvertIn(List<String> values) {
            addCriterion("REQUESTCONVERT in", values, "requestconvert");
            return (Criteria) this;
        }

        public Criteria andRequestconvertNotIn(List<String> values) {
            addCriterion("REQUESTCONVERT not in", values, "requestconvert");
            return (Criteria) this;
        }

        public Criteria andRequestconvertBetween(String value1, String value2) {
            addCriterion("REQUESTCONVERT between", value1, value2, "requestconvert");
            return (Criteria) this;
        }

        public Criteria andRequestconvertNotBetween(String value1, String value2) {
            addCriterion("REQUESTCONVERT not between", value1, value2, "requestconvert");
            return (Criteria) this;
        }

        public Criteria andResponseconvertIsNull() {
            addCriterion("RESPONSECONVERT is null");
            return (Criteria) this;
        }

        public Criteria andResponseconvertIsNotNull() {
            addCriterion("RESPONSECONVERT is not null");
            return (Criteria) this;
        }

        public Criteria andResponseconvertEqualTo(String value) {
            addCriterion("RESPONSECONVERT =", value, "responseconvert");
            return (Criteria) this;
        }

        public Criteria andResponseconvertNotEqualTo(String value) {
            addCriterion("RESPONSECONVERT <>", value, "responseconvert");
            return (Criteria) this;
        }

        public Criteria andResponseconvertGreaterThan(String value) {
            addCriterion("RESPONSECONVERT >", value, "responseconvert");
            return (Criteria) this;
        }

        public Criteria andResponseconvertGreaterThanOrEqualTo(String value) {
            addCriterion("RESPONSECONVERT >=", value, "responseconvert");
            return (Criteria) this;
        }

        public Criteria andResponseconvertLessThan(String value) {
            addCriterion("RESPONSECONVERT <", value, "responseconvert");
            return (Criteria) this;
        }

        public Criteria andResponseconvertLessThanOrEqualTo(String value) {
            addCriterion("RESPONSECONVERT <=", value, "responseconvert");
            return (Criteria) this;
        }

        public Criteria andResponseconvertLike(String value) {
            addCriterion("RESPONSECONVERT like", value, "responseconvert");
            return (Criteria) this;
        }

        public Criteria andResponseconvertNotLike(String value) {
            addCriterion("RESPONSECONVERT not like", value, "responseconvert");
            return (Criteria) this;
        }

        public Criteria andResponseconvertIn(List<String> values) {
            addCriterion("RESPONSECONVERT in", values, "responseconvert");
            return (Criteria) this;
        }

        public Criteria andResponseconvertNotIn(List<String> values) {
            addCriterion("RESPONSECONVERT not in", values, "responseconvert");
            return (Criteria) this;
        }

        public Criteria andResponseconvertBetween(String value1, String value2) {
            addCriterion("RESPONSECONVERT between", value1, value2, "responseconvert");
            return (Criteria) this;
        }

        public Criteria andResponseconvertNotBetween(String value1, String value2) {
            addCriterion("RESPONSECONVERT not between", value1, value2, "responseconvert");
            return (Criteria) this;
        }

        public Criteria andLastupdatetimeIsNull() {
            addCriterion("LASTUPDATETIME is null");
            return (Criteria) this;
        }

        public Criteria andLastupdatetimeIsNotNull() {
            addCriterion("LASTUPDATETIME is not null");
            return (Criteria) this;
        }

        public Criteria andLastupdatetimeEqualTo(Date value) {
            addCriterion("LASTUPDATETIME =", value, "lastupdatetime");
            return (Criteria) this;
        }

        public Criteria andLastupdatetimeNotEqualTo(Date value) {
            addCriterion("LASTUPDATETIME <>", value, "lastupdatetime");
            return (Criteria) this;
        }

        public Criteria andLastupdatetimeGreaterThan(Date value) {
            addCriterion("LASTUPDATETIME >", value, "lastupdatetime");
            return (Criteria) this;
        }

        public Criteria andLastupdatetimeGreaterThanOrEqualTo(Date value) {
            addCriterion("LASTUPDATETIME >=", value, "lastupdatetime");
            return (Criteria) this;
        }

        public Criteria andLastupdatetimeLessThan(Date value) {
            addCriterion("LASTUPDATETIME <", value, "lastupdatetime");
            return (Criteria) this;
        }

        public Criteria andLastupdatetimeLessThanOrEqualTo(Date value) {
            addCriterion("LASTUPDATETIME <=", value, "lastupdatetime");
            return (Criteria) this;
        }

        public Criteria andLastupdatetimeIn(List<Date> values) {
            addCriterion("LASTUPDATETIME in", values, "lastupdatetime");
            return (Criteria) this;
        }

        public Criteria andLastupdatetimeNotIn(List<Date> values) {
            addCriterion("LASTUPDATETIME not in", values, "lastupdatetime");
            return (Criteria) this;
        }

        public Criteria andLastupdatetimeBetween(Date value1, Date value2) {
            addCriterion("LASTUPDATETIME between", value1, value2, "lastupdatetime");
            return (Criteria) this;
        }

        public Criteria andLastupdatetimeNotBetween(Date value1, Date value2) {
            addCriterion("LASTUPDATETIME not between", value1, value2, "lastupdatetime");
            return (Criteria) this;
        }
    }

    /**
     */
    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}